<template>
  <el-form class="remote-setting h-full flex flex-col ">
    <el-form-item label="UMD">
      <el-input v-model="setting.url"></el-input>
    </el-form-item>
  </el-form>
</template>

<script>
import {omit} from 'lodash'
export default {
  name: 'RemoteSetting',
  props: {
    dataInfo: {
      type: Object,
      default: () => ({})
    },
  },
  data () {
    return {

    }
  },
  computed: {
    setting: {
      get () {
        return this.dataInfo.gadgetSetting
      },
      set (val) {
        this.dispatch('QueryModel', 'event:setting', val)
      }
    }
  },
  methods: {
    reset () {

    },
    getData () {
      return omit(this.setting, 'source')
    },
  }
}
</script>
